import 'package:flutter/material.dart';
import 'package:icooker/model/reommend_data.dart';
import 'package:icooker/repository/remote_repository.dart';

class HomeProvider extends ChangeNotifier {
  List<RecommendData> _dataList = [];

  List<RecommendData> get getHomeList => _dataList;

  Future<List<RecommendData>> featchRecommends() =>
      RemoteRepository.getInstance().featchRecommends();

  void featchRecommends2() async {
    _dataList = await RemoteRepository.getInstance().featchRecommends();
    notifyListeners();
  }
}
